package test.viewmodel;

import java.util.ArrayList;
import java.util.List;

import admin.dao.ExamsDAO;

import model.Exams;


public class ExamsDataModel {
	private List<Exams> allExams = new ArrayList<Exams>();
	
	public ExamsDataModel(){
		updateAllExams();
	}
	
	public List<Exams> getAllExams() {
		return allExams;
	}

	public void updateAllExams(){
		this.allExams = ExamsDAO.getAllExams();
	}
}
